package hu.u_szeged.inf.ovrt.filelister;

import hu.u_szeged.inf.ovrt.filelister.core.container.ApplicationContainer;
import hu.u_szeged.inf.ovrt.filelister.core.container.SimpleApplicationContainer;

/**
 * Main, runnable class.
 */
public final class Main {
    private static final Main INSTANCE = new Main();
    private final ApplicationContainer container;

    private Main() {
        container = SimpleApplicationContainer.getInstance();
    }

    private static Main getInstance() {
        return INSTANCE;
    }

    private ApplicationContainer getContainer() {
        return container;
    }

    /**
     * Main method, entry point of the application.
     * @param args input parameters
     */
    public static void main(String[] args) {
        getInstance().getContainer().start();
    }
}
